package com.flyco.modules.stm.service;

import com.flyco.modules.stm.entity.StmTransferItem;
import com.flyco.modules.stm.entity.StmTransfer;
import com.baomidou.mybatisplus.extension.service.IService;
import com.flyco.modules.stm.vo.StmPrintVO;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * @Description: 门店调拨单
 * @Author: flyco
 * @Date:   2020-10-30
 * @Version: V1.0
 */
public interface IStmTransferService extends IService<StmTransfer> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(StmTransfer stmTransfer, List<StmTransferItem> stmTransferItemList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(StmTransfer stmTransfer, List<StmTransferItem> stmTransferItemList);
	
	/**
	 * 删除一对多
	 */
	public void delMain(Long id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);

	List<StmPrintVO> selectByIds(List<Long> ids, Date createTime);
	
}
